import { createRouter, createWebHistory } from 'vue-router'
export const ROUTER = [
  {
    path: '/layout/SeekMedicalAttention/seekmedical',
    name: 'seekmedical',
    icon: "home-o",
    meta: {
      title: '就医'
    },
    component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/index.vue'),
  }, { 
    path: '/layout/message',
    name: 'message',
    icon: "volume-o",
    meta: {
      title: '消息'
    },
    component: () => import('@/views/Layout/Message/index.vue'),
  }, {
    path: '/layout/my',
    name: 'my',
    icon: "friends-o",
    meta: {
      title: '我的'
    },
    component: () => import('@/views/Layout/My/index.vue'),
  },

]
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  // eslint-disable-next-line no-sparse-arrays
  routes: [
    {
      path: '/',
      name: 'home',
      meta: {
        title: '默认'
      },
      redirect:'/layout/SeekMedicalAttention/seekmedical'
    },
    {
      path: '/login',
      name: 'login',
      meta: {
        title: '登录'
      },
      component: () => import('@/views/Layout/My/Login/index.vue')
    }, {
      path: '/register',
      name: 'register',
      meta: {
        title: '注册'
      },
      component: () => import('@/views/Layout/My/Login/Register/index.vue')
    },
    {
      path: '/appointment',
      name: 'appointment',
      meta: {
        title: '预约挂号'
      },
      component: () => import('@/views/Layout/Message/Detail/Appointment/index.vue')
    },
    {
      path: '/payattentiondoctors',
      name: 'payattentiondoctors',
      meta: {
        title: '医生'
      },
      component: () => import('@/views/Layout/Message/Detail/PayAttentionDoctors/index.vue')
    },
    {
      path: '/outpatientappointment',
      name: 'outpatientappointment',
      meta: {
        title: '日期'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/OutpatientAppointment/index.vue')
    },
    {
      path: '/jisuwenzhen',
      name: 'jisuwenzhen',
      meta: {
        title: '极速问诊'
      },
      component: () => import('@/views/jisuwenzhen/ChatView.vue')
    },
    {
      path: '/changeNickname',
      name: 'changeNickname',
      meta: {
        title: '修改昵称'
      },
      component: () => import('@/views/Layout/My/Mydetail/ChangeNickname/index.vue')
    },
    {
      path: '/preferredpharmacy',
      name: 'preferredpharmacy',
      meta: {
        title: '优选药房'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/PreferredPharmacy/index.vue')
    }, ,
    {
      path: '/addresedit',
      name: 'addresedit',
      component: () => import(/* webpackChunkName: "edit" */ '../views/Layout/My/AddresEdit/index.vue')
    },
    {
      path: '/address',
      name: 'address',
      meta: {
        title: '地址'
      },
     component: () => import('@/views/Layout/My/Addres/index.vue')
    },{
      path: '/editress',
      name: 'editress',
      meta: {
        title: '编辑地址'
      },
     component: () => import('@/views/Layout/My/Editress/index.vue')
    },
    {
      path: '/broadcast',
      name: 'broadcast',
      meta: {
        title: '直播'
      },
      component: () => import('@/views/Layout/Message/Detail/Broadcast/index.vue')
    }, {
      path: '/myConsultationRecords',
      name: 'myConsultationRecords',
      meta: {
        title: '我的问诊记录'
      },
      component: () => import('@/views/Layout/Message/Detail/My consultation records/index.vue')
    }, {
      path: '/myRegistrationRecord',
      name: 'myRegistrationRecord',
      meta: {
        title: '我的挂号记录'
      },
      component: () => import('@/views/Layout/Message/Detail/My registration record/index.vue')
    }, {
      path: '/mydetail',
      name: 'mydetail',
      meta: {
        title: '我的页面的详情页'
      },
      component: () => import('@/views/Layout/My/Mydetail/index.vue')
    },
    {
      path: '/accountsettings',
      name: 'accountsettings',
      meta: {
        title: '账号设置'
      },
      component: () => import('@/views/Layout/My/Mydetail/Accountsettings/index.vue')
    }, {
      path: '/Cancelaccount',
      name: 'Cancelaccount',
      meta: {
        title: '注销账号'
      },
      component: () => import('@/views/Layout/My/Mydetail/Accountsettings/Cancelaccount/index.vue')
    },
    {
      path: '/rapidConsultation',
      name: 'rapidConsultation',
      meta: {
        title: '极速问诊'
      },
      component: () => import('@/views/Layout/Message/Detail/Rapid consultation/index.vue')
    }, {
      path: '/detail',
      name: 'detail',
      meta: {
        title: '消息详情'
      },
      component: () => import('@/views/Layout/Message/Detail/index.vue')
    },
    {
      path: '/onlineconsultation',
      name: 'onlineconsultation',
      meta: {
        title: '在线咨询'
      },
      component: () => import('@/views/Layout/Message/Detail/Mnline/index.vue'),
    },
    {
      path: '/healthy',
      name: 'healthy',
      meta: {
        title: '健康'
      },
      component: () => import('@/views/Layout/My/Healthy/iindex.vue'),
    },{
      path: '/archivedetails',
      name: 'Archivedetails',
      meta: {
        title: '健康详情'
      },
      component: () => import('@/views/Layout/My/Healthy/Archivedetails/index.vue'),
    }, {
      path: '/medicine',
      name: 'medicine',
      meta: {
        title: '复方开药'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Medicine/index.vue'),
    },
    {
      path: '/medicationecommendations',
      name: 'medicationecommendations',
      meta: {
        title: '用药'
      },
      component: () => import('@/views/Layout/My/Medicationecommendations/index.vue'),
    },
    {
      path: '/chat',
      name: 'chat',
      meta: {
        title: '聊个天'
      },
      component: () => import('@/views/ChatView/ChatView.vue'),
    },
    {
      path: '/preferredsuggestions',
      name: 'preferredsuggestions',
      meta: {
        title: '优选订单'
      },
      component: () => import('@/views/Layout/Message/Detail/PreferredSuggestions/index.vue'),
    },
    {
      path: '/followplay',
      name: 'followplay',
      meta: {
        title: '随访计划'
      },
      component: () => import('@/views/Layout/My/FollowPlay/index.vue'),
    },

    {
      path: '/mycoupons',
      name: 'mycoupons',
      meta: {
        title: '卡券'
      },
      component: () => import('@/views/Layout/My/Mycoupons/index.vue'),
    },
    {
      path: '/myreservation',
      name: 'myreservation',
      meta: {
        title: '预约'
      },
      component: () => import('@/views/Layout/My/MyReservation/index.vue'),
    },
    {
      path: '/Useragreement',
      name: 'Useragreement',
      meta: {
        title: '协议'
      },
      component: () => import('@/views/Layout/My/UserAgreement/index.vue'),
    },
    {
      path: '/priceannouncement',
      name: 'priceannouncement',
      meta: {
        title: '价格'
      },
      component: () => import('@/views/Layout/My/PriceAnnouncement/index.vue'),
    },
    {
      path: '/Privacyagreement',
      name: 'Privacyagreement',
      meta: {
        title: '隐私'
      },
      component: () => import('@/views/Layout/My/PrivacyAgreement/index.vue'),
    }, {
      path: '/appointmentsearch',
      name: 'appointmentsearch',
      meta: {
        title: '挂号下的搜索'
      },
      component: () => import('@/views/Layout/Message/Detail/Appointment/Search/index.vue'),
    },
    // 闫建泽 11/19 15:27
    {
      path: '/quickconsultationpayment',
      name: 'quickconsultationpayment',
      meta: {
        title: '极速问诊支付页'
      },
      component: () => import('@/views/Layout/Message/Detail/Rapid consultation/Quickconsultationpayment/index.vue'),
    },
    {
      path: '/advice',
      name: 'advice',
      meta: {
        title: '咨询页面'
      },
      component: () => import('@/views/Layout/Message/Detail/Rapid consultation/Advice/index.vue'),
    },
    {
      path: '/searchTab',
      name: '搜索切换',
      meta: {
        title: '搜索切换'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/SearchSeek/searchTab/index.vue')
    },
    {
      path: '/search/archives',
      name: '建立档案',
      meta: {
        title: '建立档案'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/archives/index.vue'),
    },
    {
      path: '/layout',
      name: 'layout',
      meta: {
        title: '布局'
      },
      component: () => import('@/views/Layout/index.vue'),
      children: ROUTER
    },
    {
      path: '/layout/appointment',
      name: 'appointment',
      meta: {
        title: '预约挂号'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/index.vue'),
    },
    {
      path: '/layout/searchseek',
      name: 'search',
      meta: {
        title: '搜索页面'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/SearchSeek/index.vue'),
    },
    {
      path: '/layout/popular',
      name: 'popular',
      meta: {
        title: '热门医生'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Popular/index.vue'),
    },
    {
      path: '/layout/hospita',
      name: 'hospita',
      meta: {
        title: '全国医院'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Hospital/index.vue'),
    }, {
      path: '/layout/Departments',
      name: 'Department',
      meta: {
        title: '全部科室'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Popular/Department/index.vue'),
    },
    {
      path: '/AboutUs',
      name: 'AboutUs',
      meta: {
        title: '关于我们'
      },
      component: () => import('@/views/Layout/My/AboutUs/index.vue'),
    },
    {
      path: '/contactus',
      name: 'contactus',
      meta: {
        title: '公众号'
      },
      component: () => import('@/views/Layout/My/AboutUs/contactus/index.vue'),
    },
    {
      path: '/Businesslicense',
      name: 'Businesslicense',
      meta: {
        title: '营业'
      },
      component: () => import('@/views/Layout/My/AboutUs/Businessicense/index.vue'),
    },
    {
      path: '/Aftersales',
      name: 'Aftersales',
      meta: {
        title: '售后'
      },
      component: () => import('@/views/Layout/My/AboutUs/Aftersales/index.vue'),
    },
    {
      path: '/Selfdiscipline',
      name: 'Selfdiscipline',
      meta: {
        title: '社区自律守则'
      },
      component: () => import('@/views/Layout/My/AboutUs/Selfdiscipline/index.vue'),
    },
    {
      path: '/askdoctor',
      name: 'askdoctor',
      meta: {
        title: '问医生页面'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/index.vue'),
    },
    {
      path: '/geren',
      name: 'geren',
      meta: {
        title: '个人'
      },
      component: () => import('@/views/Layout/My/Mydetail/Privacypolicy/geren/index.vue'),
    },
    {
      path: '/privacypolicy',
      name: 'privacypolicy',
      meta: {
        title: '隐私政策'
      },
      component: () => import('@/views/Layout/My/Mydetail/Privacypolicy/index.vue'),
    },
    {
      path: '/Feedbackopinions',
      name: 'Feedbackopinions',
      meta: {
        title: '意见反馈'
      },
      component: () => import('@/views/Layout/My/Feedbackopinions/index.vue'),
    },
    {
      path: '/deilts',
      name: 'deilts',
      meta: {
        title: '首页推荐详情页'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Details/index.vue'),
    },
    {
      path: '/Shoppingcartsearch',
      name: 'Shoppingcartsearch',
      meta: {
        title: '首页推荐详情页'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/Shopping Cart/Shoppingcartsearch/index.vue'),
    },
    {
      path: '/forgotpassword',
      name: 'forgotpassword',
      meta: {
        title: '忘记密码'
      },
      component: () => import('@/views/Layout/My/Login/Forgotpassword/index.vue'),
    },
    {
      path: '/shoppingcart',
      name: 'shoppingcart',
      meta: {
        title: '购物车'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/Shopping Cart/index.vue'),
    },
    {
      path: '/nationwide',
      name: 'nationwide',
      meta: {
        title: '选择地区范围'
      },
      component: () => import('@/views/Layout/nationwide/index.vue'),
    },
    {
      path: '/defaultsorting',
      name: 'defaultsorting',
      meta: {
        title: '默认排序'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Popular/Defaultsorting/index.vue'),
    },
    {
      path: '/GoldenFlag',
      name: 'GoldenFlag',
      meta: {
        title: '我要送锦旗'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/GoldenFlag/index.vue'),
    },
    {
      path: '/Layout/hospitaldetails',
      name: 'hospitalXiang',
      meta: {
        title: '医院详情页'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Hospital/HospitalDetails/index.vue'),
    }, {
      path: '/autodoctions',
      name: 'autodoctions',
      meta: {
        title: '医生详情'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/AutoDoctions/index.vue'),
    },
    {
      path: '/registered',
      name: 'registered',
      meta: {
        title: '挂号详情页'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Hospital/HospitalDetails/Registered/index.vue'),
    },
     {
      path: '/bydebqer',
      name: 'bydebqer',
      meta: {
        title: '按科室'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Bydepartment/index.vue'),
    },
    {
      path: '/seathclassify',
      name: 'seathclassify',
      meta: {
        title: '顶部搜索页'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Hospital/Seathclassify/index.vue'),
    },
     {
      path: '/seathclassout',
      name: 'seathclassout',
      meta: {
        title: '顶部搜索结果页'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Hospital/Seathclassify/SeathclassOut/index.vue'),
    },
     {
      path: '/wholecountry',
      name: 'wholecountry',
      meta: {
        title: '全国'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Hospital/wholecountry/index.vue'),
    },
       {
      path: '/hospitas',
      name: 'hospitaas',
      meta: {
        title: '按医生'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Hospital-list/index.vue'),
    },
    {
      path: '/remainder',
      name: 'remainder',
      meta: {
        title: '剩余挂号'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Appointments/Hospital/HospitalDetails/Registered/Remainder/index.vue'),
    }, 
     {
      path: '/identify',
      name: 'identify',
      meta: {
        title: '文字识别'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Identify/index.vue'),
    }, 
      {
      path: '/openingapplication',
      name: 'openingapplication',
      meta: {
        title: '更多锦旗'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/Openingapplication/index.vue'),
    }, 
    {
      path: '/Registerr',
      name: 'Registerr',
      meta: {
        title: '医院挂号'
      },
      component: () => import('@/views/Layout/SeekMedicalAttention/Seekmedical/Askdoctor/Register/index.vue'),
    }, 
     
  ]
})

export default router
